#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
    char ch, a[81];
    int flag = 0;
    ch = getchar();
    getchar();
    gets(a);
    for (int i = strlen(a) - 1; i >= 0; i--)
        if (a[i] == ch)
        {
            printf("index = %d", i);
            flag = 1;
            break;
        }
    if (flag == 0)
        printf("Not Found");

    return 0;
}
